package com.andy.service.impl;

import com.andy.service.AndyService;
import com.andy.service.LagouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LagouServiceImpl implements LagouService {

    @Autowired
    private AndyService andyService;

    @Override
    public void teach() {
        System.out.println("老师开始上课");
    }

    @Override
    public void transfer(String fromCardNo, String toCardNo, Double amount) throws Exception {
        andyService.transfer(fromCardNo,toCardNo,amount);
    }
}
